package com.zx.service.impl;

import com.zx.annotation.Bean;
import com.zx.annotation.Di;
import com.zx.dao.UserDao;
import com.zx.service.UserService;

@Bean
public class UserServiceImpl implements UserService {
    @Di
    private UserDao userDao;

    public void add(){
        System.out.println("service...");
        //调用dao的方法
        userDao.add();
    }
}
